package cn.my.androidasync.http.body;

import cn.my.androidasync.DataEmitter;
import cn.my.androidasync.DataSink;
import cn.my.androidasync.callback.CompletedCallback;
import cn.my.androidasync.http.AsyncHttpRequest;

public interface AsyncHttpRequestBody<T> {
    void write(AsyncHttpRequest request, DataSink sink, CompletedCallback completed);
    void parse(DataEmitter emitter, CompletedCallback completed);
    String getContentType();
    boolean readFullyOnRequest();
    int length();
    T get();
}
